#ifndef TYPEDEF_H
#define TYPEDEF_H
using namespace std;

#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include <stdint.h>
#include <QString>
#include <vector>
#define AUTHOR                          "研发中心-硬件部-杜凯"
#define SUCCESS                         1
#define FAILED                          0

#define BIG_ENDIAN                      1
#define LITTLE_ENDIAN                   0
#define NACK                            0
#define ACK                             1
#define ENABLE                          1
#define DISABLE                         0

#define LOCK_PARAM                      (char*)__FILE__,__LINE__
#define LOCATION_PARAM                  (char*)__FILE__,(char*)__func__,__LINE__
#define FLOAT_EPS                       1e-6

#define MAX_PATH_LEN                    512
#define MAX_RECV_BUF_SIZE               8192
#define MAX_SEND_BUF_SIZE               8192
#define MAX_BUFF_SIZE                   1024
#define MAX_BUF_SIZE                   1024
#define MAX_HEARTBEAT_TIMEOUT           20
#define DEFAULT_HEARTBEAT_INTERVAL      5
#define MAX_MSG_LEN                     8192
#define IPADDR_LEN                      4
#define MAC_ADDR_LEN                    6
typedef uint8_t IPADDR[IPADDR_LEN];
typedef uint8_t MACADDR[MAC_ADDR_LEN];
#define MAX_DATABUF_LEN                 4096







#endif // TYPEDEF_H
